package com.example.ymm.modules1.service.user;

import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.my.user.DbBook;
import com.example.ymm.modules1.entity.my.user.ViewBook;
import com.example.ymm.modules1.service.dto.DbBookQueryCriteria;
import com.example.ymm.modules1.service.dto.DbClazzBookQueryCriteria;

import java.util.List;

public interface DbBookService extends BaseService<DbBook> {


    TableList<DbBook> list(DbBookQueryCriteria criteria, YmPageDto ymPage);

    List<DbBook> queryAll(DbBookQueryCriteria criteria);


    List<ViewBook> getUserBook(DbClazzBookQueryCriteria criteria);


    DbBook detail(String bookId);

    DbBook readBook(String bookId);

}
